<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>textarea | H5学习笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="逍遥派">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../../gitbook/plugins/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../../md/html/input/button.html" />
    
    
    <link rel="prev" href="../../../md/html/input/file.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.1.12.5"
        data-chapter-title="textarea"
        data-filepath="md/html/input/textarea.md"
        data-basepath="../../.."
        data-revision="Tue Dec 12 2017 18:04:15 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/html/html.html">
            
                
                    <a href="../../../md/html/html.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/html/know.html">
            
                
                    <a href="../../../md/html/know.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        认识页面、以及行内元素和块级元素
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="md/html/a.html">
            
                
                    <a href="../../../md/html/a.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.1.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="md/html/path.html">
            
                
                    <a href="../../../md/html/path.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.2.</b>
                        
                        文件路径
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="md/html/img.html">
            
                
                    <a href="../../../md/html/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.3.</b>
                        
                        img标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="md/html/area.html">
            
                
                    <a href="../../../md/html/area.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.4.</b>
                        
                        锚点和热区
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.5" data-path="md/html/table.html">
            
                
                    <a href="../../../md/html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.5.</b>
                        
                        表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.6" data-path="md/html/media.html">
            
                
                    <a href="../../../md/html/media.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.6.</b>
                        
                        音频与视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.7" data-path="md/html/list.html">
            
                
                    <a href="../../../md/html/list.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.7.</b>
                        
                        列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.8" data-path="md/html/jframe.html">
            
                
                    <a href="../../../md/html/jframe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.8.</b>
                        
                        内嵌页面
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.9" data-path="md/html/icon.html">
            
                
                    <a href="../../../md/html/icon.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.9.</b>
                        
                        网页icon
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.10" data-path="md/html/character.html">
            
                
                    <a href="../../../md/html/character.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.10.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.11" data-path="md/html/form.html">
            
                
                    <a href="../../../md/html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.11.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.12" data-path="md/html/input.html">
            
                
                    <a href="../../../md/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.</b>
                        
                        input标签
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.12.1" data-path="md/html/input/radio.html">
            
                
                    <a href="../../../md/html/input/radio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.1.</b>
                        
                        radio
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.12.2" data-path="md/html/input/checkbox.html">
            
                
                    <a href="../../../md/html/input/checkbox.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.2.</b>
                        
                        checkbox
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.12.3" data-path="md/html/input/select.html">
            
                
                    <a href="../../../md/html/input/select.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.3.</b>
                        
                        select
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.12.4" data-path="md/html/input/file.html">
            
                
                    <a href="../../../md/html/input/file.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.4.</b>
                        
                        file
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.1.12.5" data-path="md/html/input/textarea.html">
            
                
                    <a href="../../../md/html/input/textarea.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.5.</b>
                        
                        textarea
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.12.6" data-path="md/html/input/button.html">
            
                
                    <a href="../../../md/html/input/button.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.6.</b>
                        
                        button
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/css/css.html">
            
                
                    <a href="../../../md/css/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/css/selector.html">
            
                
                    <a href="../../../md/css/selector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="md/css/selector/element.html">
            
                
                    <a href="../../../md/css/selector/element.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        元素选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="md/css/selector/class.html">
            
                
                    <a href="../../../md/css/selector/class.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        类选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="md/css/selector/id.html">
            
                
                    <a href="../../../md/css/selector/id.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        ID选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="md/css/selector/descendant.html">
            
                
                    <a href="../../../md/css/selector/descendant.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        后代选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="md/css/selector/child.html">
            
                
                    <a href="../../../md/css/selector/child.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        子元素选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="md/css/selector/general.html">
            
                
                    <a href="../../../md/css/selector/general.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        兄弟选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="md/css/selector/adjacent.html">
            
                
                    <a href="../../../md/css/selector/adjacent.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        相邻选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="md/css/selector/pseudo.html">
            
                
                    <a href="../../../md/css/selector/pseudo.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.8.</b>
                        
                        伪类选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.9" data-path="md/css/selector/att.html">
            
                
                    <a href="../../../md/css/selector/att.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.9.</b>
                        
                        属性选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.10" data-path="md/css/selector/elements.html">
            
                
                    <a href="../../../md/css/selector/elements.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.10.</b>
                        
                        伪元素选择符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="md/gitbook/introduce.html">
            
                
                    <a href="../../../md/gitbook/introduce.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        gitbook
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="md/gitbook/use.html">
            
                
                    <a href="../../../md/gitbook/use.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        gitbook安装及使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="md/gitbook/mardown.html">
            
                
                    <a href="../../../md/gitbook/mardown.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        Markdown编辑器语法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="md/gitbook/plugins.html">
            
                
                    <a href="../../../md/gitbook/plugins.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        Markdown插件安装配置
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="md/node.js/introduce.html">
            
                
                    <a href="../../../md/node.js/introduce.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        NodeJs
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="md/node.js/nvm.html">
            
                
                    <a href="../../../md/node.js/nvm.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        nvm管理nodejs
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="md/node.js/npm.html">
            
                
                    <a href="../../../md/node.js/npm.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        npm介绍及使用
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../../" >H5学习笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="textarea&#x6587;&#x672C;&#x57DF;">textarea(&#x6587;&#x672C;&#x57DF;)</h2>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
<th style="text-align:center">&#x503C;</th>
<th style="text-align:center">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">cols</td>
<td style="text-align:center"></td>
<td style="text-align:center">&#x5217;&#x6570;</td>
</tr>
<tr>
<td style="text-align:center">rows</td>
<td style="text-align:center"></td>
<td style="text-align:center">&#x884C;&#x6570;</td>
</tr>
<tr>
<td style="text-align:center">placeholder</td>
<td style="text-align:center"></td>
<td style="text-align:center">&#x63D0;&#x793A;&#x8BED;</td>
</tr>
<tr>
<td style="text-align:center">value</td>
<td style="text-align:center"></td>
<td style="text-align:center">&#x63A7;&#x5236;&#x6587;&#x5B57;&#x663E;&#x793A;</td>
</tr>
<tr>
<td style="text-align:center">autocomplete</td>
<td style="text-align:center">off<br>on</td>
<td style="text-align:center">&#x9ED8;&#x8BA4;&#x6253;&#x5F00;&#xFF0C;off(&#x4E0D;&#x4F7F;&#x7528;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x8BB0;&#x5FC6;&#x81EA;&#x52A8;&#x586B;&#x5145;&#xFF0C;&#x4F7F;&#x7528;&#x8005;&#x5FC5;&#x987B;&#x8F93;&#x5165;&#x4ED6;&#x4EEC;&#x60F3;&#x8981;&#x8F93;&#x5165;&#x7684;&#x6240;&#x6709;&#x5185;&#x5BB9;)<br>on(&#x6D4F;&#x89C8;&#x5668;&#x6839;&#x636E;&#x7528;&#x6237;&#x4E4B;&#x524D;&#x8F93;&#x5165;&#x7684;&#x5185;&#x5BB9;&#x6216;&#x8005;&#x4E60;&#x60EF;&#xFF0C;&#x5728;&#x7528;&#x6237;&#x8F93;&#x5165;&#x7684;&#x65F6;&#x5019;&#x7ED9;&#x51FA;&#x76F8;&#x5E94;&#x8F93;&#x5165;&#x63D0;&#x793A;)</td>
</tr>
<tr>
<td style="text-align:center">autofocus</td>
<td style="text-align:center">&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x5B8C;&#x6BD5;&#x4E4B;&#x540E;&#x662F;&#x5426;&#x81EA;&#x52A8;&#x7ED9;&#x672C;&#x5143;&#x7D20;&#x6DFB;&#x52A0;&#x7126;&#x70B9;&#x3002;&#x53EA;&#x6709;&#x8DDF;&#x8868;&#x683C;&#x5173;&#x8054;&#x7684;&#x624D;&#x80FD;&#x4F7F;&#x672C;&#x5C5E;&#x6027;&#x751F;&#x6548;</td>
<td style="text-align:center"></td>
</tr>
<tr>
<td style="text-align:center">resize</td>
<td style="text-align:center">none</td>
<td style="text-align:center">&#x53BB;&#x6389;&#x6587;&#x672C;&#x57DF;&#x53F3;&#x4E0B;&#x89D2;&#x7684;&#x9ED8;&#x8BA4;&#x7684;&#x7070;&#x8272;&#x659C;&#x6760;</td>
</tr>
<tr>
<td style="text-align:center">maxlength</td>
<td style="text-align:center"></td>
<td style="text-align:center">&#x5141;&#x8BB8;&#x7528;&#x6237;&#x8F93;&#x5165;&#x7684;&#x6700;&#x5927;&#x5B57;&#x7B26;&#x957F;&#x5EA6;,&#x672A;&#x6307;&#x5B9A;&#x8868;&#x793A;&#x65E0;&#x9650;&#x957F;&#x5EA6;</td>
</tr>
<tr>
<td style="text-align:center">minlength</td>
<td style="text-align:center"></td>
<td style="text-align:center">&#x5141;&#x8BB8;&#x7528;&#x6237;&#x8F93;&#x5165;&#x7684;&#x6700;&#x5C0F;&#x5B57;&#x7B26;&#x957F;&#x5EA6;</td>
</tr>
<tr>
<td style="text-align:center">name</td>
<td style="text-align:center"></td>
<td style="text-align:center">&#x5143;&#x7D20;&#x7684;&#x540D;&#x5B57;</td>
</tr>
<tr>
<td style="text-align:center">readonly</td>
<td style="text-align:center"></td>
<td style="text-align:center">&#x4E0D;&#x5141;&#x8BB8;&#x4FEE;&#x6539;&#x5143;&#x7D20;&#x5185;&#x6587;&#x672C;</td>
</tr>
<tr>
<td style="text-align:center">required</td>
<td style="text-align:center"></td>
<td style="text-align:center">&#x5185;&#x5BB9;&#x5FC5;&#x586B;</td>
</tr>
<tr>
<td style="text-align:center">wrap</td>
<td style="text-align:center">soft<br>hard</td>
<td style="text-align:center">&#x6307;&#x5B9A;&#x6587;&#x672C;&#x6362;&#x884C;&#x7684;&#x65B9;&#x5F0F;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A;soft&#xFF0C;&#x5728;&#x5230;&#x8FBE;&#x5143;&#x7D20;&#x6700;&#x5927;&#x5BBD;&#x5EA6;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x4E0D;&#x4F1A;&#x81EA;&#x52A8;&#x63D2;&#x5165;&#x6362;&#x884C;&#x7B26;<br>&#x5728;&#x6587;&#x672C;&#x5230;&#x8FBE;&#x5143;&#x7D20;&#x6700;&#x5927;&#x5BBD;&#x5EA6;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x81EA;&#x52A8;&#x63D2;&#x5165;&#x6362;&#x884C;&#x7B26;</td>
</tr>
</tbody>
</table>
<p><strong>&#x6CE8;&#x610F;&#x70B9;:</strong>&#x6CA1;&#x6709;value&#x503C;&#xFF0C;&#x5B83;&#x7684;&#x503C;&#x662F;&#x76F4;&#x63A5;&#x5199;&#x5728;&#x6807;&#x7B7E;&#x5BF9;&#x4E2D;&#x95F4;,&#x800C;&#x4E14;&#x4E0D;&#x80FD;&#x7559;&#x7A7A;&#xFF0C;&#x4E0D;&#x7136;&#x4F1A;&#x76F4;&#x63A5;&#x7B97;&#x8FDB;&#x53BB;</p>
<pre><code>&lt;textarea name=&quot;&quot; rows=&quot;10&quot; cols=&quot;30&quot; placeholder=&quot;&#x4F60;&#x662F;&#x8C01;&quot;&gt;&lt;/textarea&gt;&lt;br /&gt;
</code></pre>
                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../../md/html/input/file.html" class="navigation navigation-prev " aria-label="Previous page: file"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../../md/html/input/button.html" class="navigation navigation-next " aria-label="Next page: button"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../../gitbook/app.js"></script>

    
    <script src="../../../gitbook/plugins/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.js"></script>
    

    
    <script src="../../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-interactive":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
